package cn.com.mrzheng.web.mapper;

import cn.com.mrzheng.web.entity.Post;
import cn.com.mrzheng.web.mapper.base.baseInterface;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IPostMapper extends baseInterface<Post> {
    @Override
    int add(Post entity);

    @Override
    int delete(String entityId);

    @Override
    Post findByid(String entityId);

    @Override
    List<Post> listBySort(@Param("currentPage") Integer currentPage,@Param("PageSize") Integer PageSize);

    @Override
    List<Post> list();

    @Override
    int update(Post entity);

    List<Post> listByAuthor(@Param("author") String author, @Param("currentPage") Integer currentPage,@Param("PageSize") Integer PageSize);
}
